package net.ipinglun.http;


import com.loopj.android.http.AsyncHttpClient;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;
import android.content.Context;

import org.apache.http.Header;

public class HttpHelper {

    private static AsyncHttpClient mClient = new AsyncHttpClient();

    static {
        mClient.setTimeout(10000);
    }

    public static void get(String url, AsyncHttpResponseHandler handler) {

        mClient.get(url, handler);
    }

    public static void get(String url, RequestParams params,
                           AsyncHttpResponseHandler handler) {

        mClient.get(url, params, handler);
    }



    /*
    public static void post(String url, AsyncHttpResponseHandler handler) {
        post(url, null, handler);
    }

    public static void post(String url, RequestParams params, AsyncHttpResponseHandler handler) {

        mClient.post(url, params, handler);
    }
    */




}
